package cn.iocoder.yudao.framework.base.common.util;

import java.util.Objects;
/**
 * 确保两种相同类型的数字才能比较
 */
public class NumberX {
    public static  boolean equals(Character a, Character b) {
        return Objects.equals(a,b);
    }
    public static  boolean equals(Short a, Short b) {
        return Objects.equals(a,b);
    }
    public static  boolean equals(Float a, Float b) {
        return Objects.equals(a,b);
    }
    public static  boolean equals(Integer a, Integer b) {
        return Objects.equals(a,b);
    }
    public static  boolean equals(Long a, Long b) {
        return Objects.equals(a,b);
    }
    public static  boolean equals(Double a, Double b) {
        return Objects.equals(a,b);
    }


    public static  boolean notEqual(Character a, Character b) {
        return !Objects.equals(a,b);
    }
    public static  boolean notEqual(Short a, Short b) {
        return !Objects.equals(a,b);
    }
    public static  boolean notEqual(Float a, Float b) {
        return !Objects.equals(a,b);
    }
    public static  boolean notEqual(Integer a, Integer b) {
        return !Objects.equals(a,b);
    }
    public static  boolean notEqual(Long a, Long b) {
        return !Objects.equals(a,b);
    }
    public static  boolean notEqual(Double a, Double b) {
        return !Objects.equals(a,b);
    }

}
